package LombokDemo;

import lombok.*;

import java.util.Date;

@Getter
@Setter
@ToString(exclude = "id")
@EqualsAndHashCode()
@Data
public class UserInfo1 {
    private Long id;
    private String name;
    private String phone;
    //不生成set方法和get方法
    @Getter(value = AccessLevel.NONE)
    @Setter(value = AccessLevel.NONE)
    private Date birthDay;
    @Getter(value = AccessLevel.NONE)
    @Setter(value = AccessLevel.NONE)
    private String address;

}
